package com.sg.dto.biz.bff.common;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffOrgPositionGradeDto
 * @使用场景
 */
@Data
public class BffOrgPositionGradeDto implements Serializable {

    /**
     * 职务级别ID:
     */
    @ApiModelProperty("职务级别ID")
    private String positionGradeId;

    /**
     * 职务级别名称:
     */
    @ApiModelProperty("职务级别名称")
    private String positionGradeName;

    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private Long orderNumber;
    /**
     * 是否设置等级范围:
     */
    @ApiModelProperty("是否设置等级范围")
    private String isSetGrade;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffOrgPositionGradeDto that = (BffOrgPositionGradeDto) o;
        return positionGradeId == that.positionGradeId && positionGradeName == that.positionGradeName && orderNumber == that.orderNumber && isSetGrade == that.isSetGrade;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), positionGradeId, positionGradeName, orderNumber, isSetGrade);
    }

}
